Class: Google::Apis::DriveV3::GenerateCseTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

JWT and associated metadata used to generate CSE files.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenerateCseTokenResponse

Returns a new instance of GenerateCseTokenResponse.



2978
2979
2980
# File 'lib/google/apis/drive_v3/classes.rb', line 2978

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#current_kacls_idFixnum

The current Key ACL Service (KACLS) ID associated with the JWT. Corresponds to the JSON property currentKaclsId

Returns:

  • (Fixnum)


2955
2956
2957
# File 'lib/google/apis/drive_v3/classes.rb', line 2955

def current_kacls_id
  @current_kacls_id
end

#current_kacls_nameString

Name of the KACLs that the returned KACLs ID points to. Corresponds to the JSON property currentKaclsName

Returns:

  • (String)


2960
2961
2962
# File 'lib/google/apis/drive_v3/classes.rb', line 2960

def current_kacls_name
  @current_kacls_name
end

#file_idString

The fileId for which the JWT was generated. Corresponds to the JSON property fileId

Returns:

  • (String)


2965
2966
2967
# File 'lib/google/apis/drive_v3/classes.rb', line 2965

def file_id
  @file_id
end

#jwtString

The signed JSON Web Token (JWT) for the file. Corresponds to the JSON property jwt

Returns:

  • (String)


2970
2971
2972
# File 'lib/google/apis/drive_v3/classes.rb', line 2970

def jwt
  @jwt
end

#kindString

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#generateCseTokenResponse". Corresponds to the JSON property kind

Returns:

  • (String)


2976
2977
2978
# File 'lib/google/apis/drive_v3/classes.rb', line 2976

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2983
2984
2985
2986
2987
2988
2989
# File 'lib/google/apis/drive_v3/classes.rb', line 2983

def update!(**args)
  @current_kacls_id = args[:current_kacls_id] if args.key?(:current_kacls_id)
  @current_kacls_name = args[:current_kacls_name] if args.key?(:current_kacls_name)
  @file_id = args[:file_id] if args.key?(:file_id)
  @jwt = args[:jwt] if args.key?(:jwt)
  @kind = args[:kind] if args.key?(:kind)
end