Class: Azure::Security::Mgmt::V2020_01_01_preview::Models::GcpCredentialsDetailsProperties

Inherits:
AuthenticationDetailsProperties show all
Includes:
MsRestAzure
Defined in:
lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb

Overview

GCP cloud account connector based service to service credentials, the credentials are composed of the organization ID and a JSON API key (write only)

Instance Attribute Summary collapse

Attributes inherited from AuthenticationDetailsProperties

#authentication_provisioning_state, #granted_permissions

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGcpCredentialsDetailsProperties

Returns a new instance of GcpCredentialsDetailsProperties.



18
19
20
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 18

def initialize
  @authenticationType = "gcpCredentials"
end

Instance Attribute Details

#auth_provider_x509cert_urlString

key (write only)

Returns:

  • (String)

    Auth provider x509 certificate URL field of the API



53
54
55
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 53

def auth_provider_x509cert_url
  @auth_provider_x509cert_url
end

#auth_uriString

Returns Auth URI field of the API key (write only).

Returns:

  • (String)

    Auth URI field of the API key (write only)



46
47
48
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 46

def auth_uri
  @auth_uri
end

#authenticationTypeObject

Returns the value of attribute authenticationType.



22
23
24
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 22

def authenticationType
  @authenticationType
end

#client_emailString

Returns Client email field of the API key (write only).

Returns:

  • (String)

    Client email field of the API key (write only)



40
41
42
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 40

def client_email
  @client_email
end

#client_idString

Returns Client ID field of the API key (write only).

Returns:

  • (String)

    Client ID field of the API key (write only)



43
44
45
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 43

def client_id
  @client_id
end

#client_x509cert_urlString

(write only)

Returns:

  • (String)

    Client x509 certificate URL field of the API key



57
58
59
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 57

def client_x509cert_url
  @client_x509cert_url
end

#organization_idString

Returns The organization ID of the GCP cloud account.

Returns:

  • (String)

    The organization ID of the GCP cloud account



25
26
27
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 25

def organization_id
  @organization_id
end

#private_keyString

Returns Private key field of the API key (write only).

Returns:

  • (String)

    Private key field of the API key (write only)



37
38
39
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 37

def private_key
  @private_key
end

#private_key_idString

Returns Private key ID field of the API key (write only).

Returns:

  • (String)

    Private key ID field of the API key (write only)



34
35
36
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 34

def private_key_id
  @private_key_id
end

#project_idString

Returns Project ID field of the API key (write only).

Returns:

  • (String)

    Project ID field of the API key (write only)



31
32
33
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 31

def project_id
  @project_id
end

#token_uriString

Returns Token URI field of the API key (write only).

Returns:

  • (String)

    Token URI field of the API key (write only)



49
50
51
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 49

def token_uri
  @token_uri
end

#typeString

Returns Type field of the API key (write only).

Returns:

  • (String)

    Type field of the API key (write only)



28
29
30
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 28

def type
  @type
end

Class Method Details

.mapperObject

Mapper for GcpCredentialsDetailsProperties class as Ruby Hash. This will be used for serialization/deserialization.



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/2020-01-01-preview/generated/azure_mgmt_security/models/gcp_credentials_details_properties.rb', line 64

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'gcpCredentials',
    type: {
      name: 'Composite',
      class_name: 'GcpCredentialsDetailsProperties',
      model_properties: {
        authentication_provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'authenticationProvisioningState',
          type: {
            name: 'String'
          }
        },
        granted_permissions: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'grantedPermissions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PermissionPropertyElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        authenticationType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'authenticationType',
          type: {
            name: 'String'
          }
        },
        organization_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'organizationId',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        project_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'projectId',
          type: {
            name: 'String'
          }
        },
        private_key_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'privateKeyId',
          type: {
            name: 'String'
          }
        },
        private_key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'privateKey',
          type: {
            name: 'String'
          }
        },
        client_email: {
          client_side_validation: true,
          required: true,
          serialized_name: 'clientEmail',
          type: {
            name: 'String'
          }
        },
        client_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'clientId',
          type: {
            name: 'String'
          }
        },
        auth_uri: {
          client_side_validation: true,
          required: true,
          serialized_name: 'authUri',
          type: {
            name: 'String'
          }
        },
        token_uri: {
          client_side_validation: true,
          required: true,
          serialized_name: 'tokenUri',
          type: {
            name: 'String'
          }
        },
        auth_provider_x509cert_url: {
          client_side_validation: true,
          required: true,
          serialized_name: 'authProviderX509CertUrl',
          type: {
            name: 'String'
          }
        },
        client_x509cert_url: {
          client_side_validation: true,
          required: true,
          serialized_name: 'clientX509CertUrl',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end