Class: Couchbase::Management::AzureBlobExternalAnalyticsLink

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/analytics_index_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, dataverse, connection_string: nil, account_name: nil, account_key: nil, shared_access_signature: nil, blob_endpoint: nil, endpoint_suffix: nil) {|self| ... } ⇒ AzureBlobExternalAnalyticsLink

Returns a new instance of AzureBlobExternalAnalyticsLink.

Parameters:

  • name (String)

    the name of this link

  • dataverse (String)

    the dataverse this link belongs to

  • connection_string (String, nil) (defaults to: nil)

    the connection string can be used as an authentication method, connection_string contains other authentication methods embedded inside the string. Only a single authentication method can be used. (e.g. “AccountName=myAccountName;AccountKey=myAccountKey”).

  • account_name (String, nil) (defaults to: nil)

    Azure blob storage account name

  • account_key (String, nil) (defaults to: nil)

    Azure blob storage account key

  • shared_access_signature (String, nil) (defaults to: nil)

    token that can be used for authentication

  • blob_endpoint (String, nil) (defaults to: nil)

    Azure blob storage endpoint

  • endpoint_suffix (String, nil) (defaults to: nil)

    Azure blob endpoint suffix

Yield Parameters:



1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1049

def initialize(name, dataverse,
               connection_string: nil,
               account_name: nil,
               account_key: nil,
               shared_access_signature: nil,
               blob_endpoint: nil,
               endpoint_suffix: nil)
  @name = name
  @dataverse = dataverse
  @connection_string = connection_string
  @account_name = 
  @account_key = 
  @shared_access_signature = shared_access_signature
  @blob_endpoint = blob_endpoint
  @endpoint_suffix = endpoint_suffix
  yield self if block_given?
end

Instance Attribute Details

#account_keyString?

Returns:

  • (String, nil)


1032
1033
1034
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1032

def 
  @account_key
end

#account_nameString?

Returns:

  • (String, nil)


1031
1032
1033
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1031

def 
  @account_name
end

#blob_endpointString?

Returns:

  • (String, nil)


1034
1035
1036
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1034

def blob_endpoint
  @blob_endpoint
end

#connection_stringString?

Returns:

  • (String, nil)


1030
1031
1032
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1030

def connection_string
  @connection_string
end

#dataverseString

Returns:

  • (String)


1029
1030
1031
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1029

def dataverse
  @dataverse
end

#endpoint_suffixString?

Returns:

  • (String, nil)


1035
1036
1037
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1035

def endpoint_suffix
  @endpoint_suffix
end

#nameString

Returns:

  • (String)


1028
1029
1030
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1028

def name
  @name
end

#shared_access_signatureString?

Returns:

  • (String, nil)


1033
1034
1035
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1033

def shared_access_signature
  @shared_access_signature
end

Instance Method Details

#to_backendObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'lib/couchbase/management/analytics_index_manager.rb', line 1068

def to_backend
  {
    type: :azureblob,
    link_name: @name,
    dataverse: @dataverse,
    connection_string: @connection_string,
    account_name: @account_name,
    account_key: @account_key,
    shared_access_signature: @shared_access_signature,
    blob_endpoint: @blob_endpoint,
    endpoint_suffix: @endpoint_suffix,
  }
end